package com.rd.student.jiaji.class4.suyan.zrrd.homework;

public class 无重复三位数 {
    public static void main(String[] args) {
        int sum;
        int h=0;
        for (int a=1;a<5;a++){
            for (int b=1;b<5;b++){
                for (int c=1;c<5;c++){
                if (a!=b&&a!=c&&c!=b){
                    h++;
                    sum=a*100+b*10+c;
                    System.out.println(sum);
                    }
                }
                System.out.println(h);

            }
        }


    }
}
